package com.aidex.biz.service.impl;

import java.util.List;
import com.aidex.common.annotation.DataScope;
import com.github.pagehelper.PageInfo;
import com.aidex.common.core.domain.entity.SysUser;
import com.aidex.common.core.domain.entity.SysDept;
import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.framework.cache.DeptUtils;
import com.aidex.framework.cache.UserUtils;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.aidex.biz.mapper.BizAnhuanCompanyMapper;
import com.aidex.biz.domain.BizAnhuanCompany;
import com.aidex.biz.service.BizAnhuanCompanyService;
import org.springframework.transaction.annotation.Transactional;
import com.aidex.common.utils.NumberUtils;

/**
 * 安环公司考核排名Service业务层处理
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-04-27
 */
@Service
@Transactional(readOnly = true)
public class BizAnhuanCompanyServiceImpl extends BaseServiceImpl<BizAnhuanCompanyMapper, BizAnhuanCompany> implements BizAnhuanCompanyService
{
    private static final Logger log = LoggerFactory.getLogger(BizAnhuanCompanyServiceImpl.class);

    /**
     * 获取单条数据
     * @param bizAnhuanCompany 安环公司考核排名
     * @return 安环公司考核排名
     */
    @Override
    public BizAnhuanCompany get(BizAnhuanCompany bizAnhuanCompany)
    {
        BizAnhuanCompany dto = super.get(bizAnhuanCompany);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 安环公司考核排名id
     * @return 安环公司考核排名
     */
    @Override
    public BizAnhuanCompany get(String id)
    {
        BizAnhuanCompany dto = super.get(id);
        return dto;
    }


    /**
     * 查询安环公司考核排名列表
     * @param bizAnhuanCompany 安环公司考核排名
     * @return 安环公司考核排名
     */
    @Override
    @DataScope(userAlias = "a",deptAlias = "a")
    public List<BizAnhuanCompany> findList(BizAnhuanCompany bizAnhuanCompany)
    {
        return super.findList(bizAnhuanCompany);
    }

    /**
     * 分页查询安环公司考核排名列表
     * @param bizAnhuanCompany 安环公司考核排名
     * @return 安环公司考核排名
     */
    @Override
    @DataScope(userAlias = "a",deptAlias = "a")
    public PageInfo<BizAnhuanCompany> findPage(BizAnhuanCompany bizAnhuanCompany)
    {
        return super.findPage(bizAnhuanCompany);
    }

    /**
     * 保存安环公司考核排名
     * @param bizAnhuanCompany
     * @return 结果
     */
    @Override
    public boolean save(BizAnhuanCompany bizAnhuanCompany)
    {
        return super.save(bizAnhuanCompany);
    }


    /**
     * 删除安环公司考核排名信息
     * @param bizAnhuanCompany
     * @return 结果
     */
    @Override
    public boolean remove(BizAnhuanCompany bizAnhuanCompany)
    {
        return super.remove(bizAnhuanCompany);
    }

    /**
     * 批量删除安环公司考核排名
     * @param ids 需要删除的安环公司考核排名ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteBizAnhuanCompanyByIds(String[] ids)
    {
        return mapper.deleteBizAnhuanCompanyByIds(ids);
    }

    /**
     * 获取最大编号
     * @param bizAnhuanCompany 安环公司考核排名
     * @return 结果
     */
    @Override
    public int findMaxSort(BizAnhuanCompany bizAnhuanCompany)
    {
        return NumberUtils.nextOrder(mapper.findMaxSort(bizAnhuanCompany));
    }
}
